import minRequest from '@/utils/request'

// 查询入库单管理列表
export function listWorkOrder(params) {
  return minRequest.get('/workOrder/workOrder/list', params)
}

// 查询入库单管理历史列表
export function listWorkOrderHistory(params) {
  return minRequest.get('/workOrder/workOrder/list/history', params)
}

// 查询入库单管理详细
export function getWorkOrder(inOrderId) {
  return minRequest.get('/workOrder/workOrder/' + inOrderId)
}

// 查询历史入库单管理详细
export function getWorkOrderHistory(inOrderId) {
  return minRequest.get('/workOrder/workOrder/history/' + inOrderId)
}

// 新增入库单管理
export function addWorkOrder(params) {
  return minRequest.post('/workOrder/workOrder', params)
}

// 删除入库单管理
export function delWorkOrder(inOrderId) {
  return minRequest.delete('/workOrder/workOrder/' + inOrderId)
}
